package com.jfinal.demo.config.common;

import java.util.HashMap;
import java.util.Map;

/**
 * 常量配置
 * 
 * @author Administrator
 * 
 */
public class Constants {

	/**
	 * member 缓存名
	 */
	public static final String MEMBER_CACHE_NAME = "com.jfinal.demo.core.entity.Member";

	/**
	 * 文件保存key
	 */
	public static final String KEY_FILE_SAVE_PATH = "fileSavePath";

	/**
	 * 图片mime type
	 */
	public static final Map<String, String> IMAGE_MIME_TYPES = new HashMap<String, String>() {
		private static final long serialVersionUID = 1L;
		{
			put("jpg", "image/jpeg");
			put("jpeg", "image/jpeg");
			put("jpe", "image/jpeg");
			put("bmp", "image/bmp");
			put("gif", "image/gif");
			put("png", "image/png");
		}
	};

}
